<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:ez="http://java.sun.com/jsf/composite/demo">

	  
	<h:head>
		<title>Elite Acessoria JR ME</title>
	</h:head>
	
		<h:body>
		
			<p:menubar effect="slide" effectDuration="200">
			   <p:submenu label="Acesso">
			       <p:menuitem value="Login" url="#" styleClass="open" onclick="loginPanel.show();" ></p:menuitem>
			   </p:submenu>
			     
			   <p:submenu label="Edit">  
			       <p:menuitem value="Undo" url="#" styleClass="undo" helpText="⌘Z"></p:menuitem>  
			       <p:menuitem value="Redo" url="#" styleClass="redo" helpText="⌘Y"></p:menuitem>  
			   </p:submenu>  
			     
			   <p:submenu label="View">  
			       <p:menuitem value="Source" url="#" onclick="source.show();"></p:menuitem>  
			   </p:submenu>
			</p:menubar>
		
		</h:body>
		
		<!-- Dialog Login -->
		<p:dialog header="Login" widgetVar="loginPanel" modal="true" resizable="false" draggable="false" showEffect="fade" hideEffect="fade" width="350" >
			<h:form id="frmLogin"  >
				<h:panelGrid columns="2" >
					
					<h:outputText value="Usuário:" style="font-weight:bold; font-size:13px;" />
					<h:inputText id="txtUsuario" required="true" value="#{home.usuario}" />
					
					<h:outputText value="Senha:" style="font-weight:bold; font-size:13px;" />
					<h:inputSecret id="txtSenha" required="true" value="#{home.senha}" />
				</h:panelGrid>
				<h:panelGrid columns="1" style="width:100%;text-align:center;" >
					<p:commandButton id="btnLogin" value="Logar" action="#{home.logar}" type="submit"  ajax="false" style="width:60px; height:30px; text-align:center; font-size:12px; " />
				</h:panelGrid>
			</h:form>
		</p:dialog>
	
</html>